There are four main functions in Oracle that support regular expressions:1,regexp_like: Similar to the function of like2,REGEXP_INSTR: Similar to the function of INSTR3,REGEXP_SUBSTR: Similar to the function of SUBSTR4,regexp_replace: Similar to the
Oracle Regular Expression functions: regexp_like, regexp_substr, regexp_instr, regexp_replace SQL code Oracle can't do without these four functions: 1. Regexp_like 2. Regexp_substr 3. Regexp_instr 4. Regexp_replace www.2cto.com can be used to guess
For example, there are two phases in table 1 and table 2, and you want to use like to perform join queries in mysql using the concat connection string selectt1.id, t1.title, t2.keywordfromt1innerjoint2ont1. titlelikeconcat (%, t2.keyword, %); oracle,
For example, there are two phases in table 1 and table 2, and you want to use like for join queries // use concat to connect the string select t1.id, t1.title, t2.keyword from t1 inner join t2 on t1.title like concat ('%', t2.keyword, '% ');//
Oracle finally provides support for regular expressions in 10G, where complex matches that need to be done by like can be simpler to implement using regular expressions.
There are four main functions in Oracle that support regular
[Switch] oracle Regular Expression and oracle Regular Expression1. Brief Introduction to oracle (regular expression)
At present, regular expressions have been widely used in many software applications, including * nix (Linux, Unix, etc.), HP and
The following examples illustrate how to use regular expressions to solve common problems in work.1.REGEXP_SUBSTRThe REGEXP_SUBSTR function uses a regular expression to specify the start and end points of the returned string, and returns the same
The following examples illustrate the use of regular expressions to handle problems that are common in some jobs.
1.
Regexp_substr
The REGEXP_SUBSTR function uses regular expressions to specify the start and end points of the return string, and to
Oracle Regular expressions use the introduction of regular expressions with powerful, convenient and efficient text processing capabilities. Ability to add, delete, analyze, overlay, insert, and reshape various types of text and data. Oracle
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.